//
//  WhTDef.h
//  ProjectM
//
//  Created by ris on 11-3-26.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#ifndef WhTDef_H_
#define WhTDef_H_

typedef enum {
	WhTRotateTypeX,
	WhTRotateTypeY,
	WhTRotateTypeZ,
	WhTRotateTypeAny,
	WhTRotateTypeNone
}WhTRotateType;

struct WhTPoint {
  CGFloat x;
  CGFloat y;
	CGFloat z;
};
typedef struct WhTPoint WhTPoint;



static inline WhTPoint WhTPointMake(CGFloat x,CGFloat y,CGFloat z) 
{WhTPoint point; point.x = x; point.y = y; point.z = z; return point;}

static const WhTPoint WhTPointZero = {0};

#define ECCAST(class,obj) ((class *)obj) 

#endif
